import {Routes, RouterModule}  from '@angular/router';
import {Admin} from './admin.component';
import {User} from './component/user/user.component';
import {AbuseList} from './component/abuseList/abuseList.component';
import {AddUser} from './component/addUser/addUser.component';
import {Version} from './component/version/version.component';
import {AdminGuard} from '../../filter/app.adminguard';
import {UserLog} from './component/userLog/userLog.component';
import {TrafficChart} from './component/trafficChart/trafficChart.component'
import {Activity} from './component/activities/activities.component';

const routes:Routes = [
    {
        path: '',
        component: Admin,
        children: [
            {path: 'user', component: User},
            {path: 'abuselist', component: AbuseList},
            {path: 'addUser', component: AddUser},
            {path: 'editUser', component: AddUser},
            {path: 'version', component: Version},
            {path: 'userLog', component: UserLog},
            {path: 'timeline', component: TrafficChart},
            {path: 'activities', component: Activity}
        ]
    }
];

export const routing = RouterModule.forChild(routes);
